<!DOCTYPE html>
<html>
  <head>
    <title>用户列表</title>
    <link rel='stylesheet' href='/stylesheets/style.css' />
      <%include public/public.ejs%>
  </head>
  <body ng-app="app">
    <div ng-controller="ctrl">
      <h3><%=title%></h3>
      <table>
        <thead>
          <th>id</th>
          <th>name</th>
        </thead>
        <tbody>
          <tr ng-repeat="user in users" ng-cloak>
            <td ng-bind="user.id"></td>
            <td ng-bind="user.name"></td>
          </tr>
        </tbody>
      </table>

    </div>
  </body>
</html>
<!--init data-->
<script>
  var users= JSON.parse(htmlDecode("<%=users%>"))
  var title="<%=title%>"
</script>

<script src="/app/usersApp.js"></script>